package com.tzl.design_pattern.observer_pattern;

/**
 * @author Zhilei Tang
 * @date Created in 2020/11/14 21:49
 */
public interface Subject {
  /**
   * 注册观察对象
   *
   * @param observer
   */
  void registerObserver(Observer observer);

  /**
   * 移除观察对象
   *
   * @param observer
   */
  void removeObserver(Observer observer);

  /** 通知观察对象 */
  void notifyObservers();
}
